//package com.kalvan.web.servlet.filter;
//
//import com.kalvan.web.servlet.request.RequestWrapper;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Component;
//
//import javax.servlet.*;
//import javax.servlet.http.HttpServletRequest;
//import java.io.IOException;
//import java.util.HashMap;
//import java.util.Map;
//
//
///**
// * 扩展支持request.getParameterMap() 修改
// *
// * @author chenliang
// */
//@Slf4j
//@Component
//public class RequestFilter implements Filter {
//
//    @Override
//    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
//        Map<String, String[]> params = new HashMap<>(request.getParameterMap());
//        request = new RequestWrapper((HttpServletRequest) request, params);
//        chain.doFilter(request, response);
//    }
//}
